SUMMARY = "Generic Linux command-line automation tool"
HOMEPAGE = "https://github.com/chehrlic/qsqlcipher-qt6"
LICENSE = "Apache-2.0 & MIT"
LIC_FILES_CHKSUM = " \
    file://README.md;md5=ef68a3407d900845ac3cdc044b694b9c \
"

SRC_URI = "git://github.com/chehrlic/qsqlcipher-qt6.git;protocol=https;nobranch=1;branch=main;"
SRCREV = "4abad01430b0400ca8fd3818e1d73680870d1625"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

DEPENDS = "qtbase qtbase-native"

EXTRA_OECMAKE = "-DQT_HOST_PATH=${STAGING_DIR_NATIVE}${prefix}"


do_install() {
    install -d ${D}${libdir}/plugins/sqldrivers
    install -m 0755 ${B}/libqsqlcipher.so ${D}${libdir}/plugins/sqldrivers/
}

FILES:${PN} = " \
    ${libdir}/plugins/sqldrivers/libqsqlcipher.so \
"
